#SPDB_Informix_DBSPI_1076
# major >0.15
# "0" : 
OWNER=$(su - $sys_user -c "$Souce_File onstat -k" | grep HDR+X | awk '{if ($2 != 0) {print $3}}') > /dev/null
if [ "X$OWNER" != 'X' ]; then
    #echo "some tables are locked, wait 5 seconds and check again!"
    sleep 5
    OWNER=$(su - $sys_user -c "$Souce_File onstat -k" | grep HDR+X | awk '{if ($2 != 0) {print $3}}') > /dev/null
    if [ "X$OWNER" != 'X' ]; then
        su - $sys_user -c "$Souce_File onstat -u" | grep "$OWNER" | awk '{print $3}' > /tmp/sid_wtlist.tmp
        if [ -s "/tmp/sid_wtlist.tmp" ]; then
            cat /tmp/sid_wtlist.tmp | while read line
            do
            #echo "===============SID:$line=================="
            SPDB_Informix_DBSPI_1076=$(su - $sys_user -c "$Souce_File onstat -g sql $line")
            done
        else
            #echo "No tables are blocked by LOCKS!(sid_wtlist.tmp is empty)! "
			SPDB_Informix_DBSPI_1076="0"
        fi
    else
        #echo "No tables are blocked by LOCKS!(no blocked when 2th checking)! "
		SPDB_Informix_DBSPI_1076="0"
    fi
else
    #echo "No tables are blocked by LOCKS!(no blocked when 1th checking)! "
    SPDB_Informix_DBSPI_1076="0"
fi


echo SPDB_Informix_DBSPI---"$SPDB_Informix_DBSPI_1076"